public class Wages {
    public static float Amount(String[] arr) {
        float wag = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i].equals("A")) {
                wag += 500;
            }
            if (arr[i].equals("B")) {
                wag += 320;
            }
            if (arr[i].equals("C")) {
                wag += 300;
            }
        }
        System.out.println("这月工资为：" + wag);
        return wag;
    }

    public static final void realWages(float x) {
        if (x <= 3000) {
            System.out.println("税后收入为：" + (float) (x * 0.97));
        }
        if (3000 < x && x < 12000) {
            System.out.println("税后收入为：" + (float) (3000 * 0.97 + (x - 3000) * 0.90));
        }
        if (x > 12000 && x < 25000) {
            System.out.println("税后收入为：" + (float) (3000 * 0.97 + 9000 * 0.90 + (x - 12000) * 0.8));
        }
    }
}
